package com.elong.qadev.entity;

import java.util.Date;

import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Lob;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
/**
 * 
* @ClassName: WebuiCase
* @Description: TODO(webui用例的基础数据类)
* @author kangchen
* @date 2015年10月16日
*
 */
@Entity
@Table(name = "WEBUI_WEBUICASE", schema = "ti")
public class WebuiCase {

	public WebuiCase(int id, int caseId, String caseType, boolean isExpected,
			String stepContent, String codeContent, String owner,
			Date createDateTime, Date modifyDateTime, String remarks) {
		super();
		this.id = id;
		this.caseId = caseId;
		this.caseType = caseType;
		this.isExpected = isExpected;
		this.stepContent = stepContent;
		this.codeContent = codeContent;
		this.owner = owner;
		this.createDateTime = createDateTime;
		this.modifyDateTime = modifyDateTime;
		this.remarks = remarks;
	}
	public WebuiCase() {
		super();
		// TODO Auto-generated constructor stub
	}
	private int id;
	private int caseId;
	private String caseType;
	private boolean isExpected;
	private String stepContent;
	@Lob
	@Basic(fetch = FetchType.LAZY)
	@Column(name = "STEPCONTENT", nullable = true)
	public String getStepContent() {
		return stepContent;
	}
	public void setStepContent(String stepContent) {
		this.stepContent = stepContent;
	}
	private String codeContent;
	private String owner;
	private Date createDateTime;
	private Date modifyDateTime;
	private String remarks;
	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	@Column(name = "ID", unique = true, nullable = false, length = 10)
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	@Column(name = "CASEID", nullable = false, length = 50)
	public int getCaseId() {
		return caseId;
	}
	public void setCaseId(int caseId) {
		this.caseId = caseId;
	}
	@Column(name = "CASETYPE", nullable = true, length = 50)
	public String getCaseType() {
		return caseType;
	}
	public void setCaseType(String caseType) {
		this.caseType = caseType;
	}
	@Column(name = "ISEXPECTED", nullable = false)
	@org.hibernate.annotations.Type(type = "yes_no")
	public boolean isExpected() {
		return isExpected;
	}
	public void setExpected(boolean isExpected) {
		this.isExpected = isExpected;
	}
	@Lob
	@Basic(fetch = FetchType.LAZY)
	@Column(name = "CODECONTENT", nullable = true)
	public String getCodeContent() {
		return codeContent;
	}
	public void setCodeContent(String codeContent) {
		this.codeContent = codeContent;
	}
	@Column(name = "OWNER", nullable = true, length = 50)
	public String getOwner() {
		return owner;
	}
	public void setOwner(String owner) {
		this.owner = owner;
	}
	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "CREATEDATE", length = 7)
	public Date getCreateDateTime() {
		return createDateTime;
	}
	public void setCreateDateTime(Date createDateTime) {
		this.createDateTime = createDateTime;
	}
	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "MODIFYDATE", length = 7)
	public Date getModifyDateTime() {
		return modifyDateTime;
	}
	public void setModifyDateTime(Date modifyDateTime) {
		this.modifyDateTime = modifyDateTime;
	}
	@Column(name = "REMARKS", nullable = true, length = 150)
	public String getRemarks() {
		return remarks;
	}
	public void setRemarks(String remarks) {
		this.remarks = remarks;
	}
	
	
}
